package com.act.dao;

import com.act.domain.ContractManagement;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

//合同管理
public interface IContractManagementDao {

	//删除选中合同
	void delete(int id);
	
	//添加
	void add(ContractManagement contractManagement);
	
	//修改
	void update(ContractManagement contractManagement);

	//查总记录数
	int getCounts();
	
	//根据id查询一条
	ContractManagement getById(@Param("id")int id);
	
	//查询所有合同
	List<Map> getAll(@Param("startIndex")int startIndex,@Param("endIndex")int endIndex);
}
